.class Lcom/teewoo/app/bus/ui/SystemActivity$1;
.super Ljava/lang/Object;
.source "SystemActivity.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/teewoo/app/bus/ui/SystemActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/teewoo/app/bus/ui/SystemActivity;


# direct methods
.method constructor <init>(Lcom/teewoo/app/bus/ui/SystemActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/SystemActivity$1;->this$0:Lcom/teewoo/app/bus/ui/SystemActivity;

    .line 57
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/teewoo/app/bus/ui/SystemActivity$1;)Lcom/teewoo/app/bus/ui/SystemActivity;
    .locals 1
    .parameter

    .prologue
    .line 57
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SystemActivity$1;->this$0:Lcom/teewoo/app/bus/ui/SystemActivity;

    return-object v0
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 9
    .parameter
    .parameter "arg1"
    .parameter "position"
    .parameter "arg3"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 61
    .local p1, eachAdaper:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    const/4 v0, 0x1

    if-ne p3, v0, :cond_2

    .line 62
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SystemActivity$1;->this$0:Lcom/teewoo/app/bus/ui/SystemActivity;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/SystemActivity;->access$1(Lcom/teewoo/app/bus/ui/SystemActivity;)Ljava/lang/String;

    move-result-object v6

    .line 63
    .local v6, downloadVersion:Ljava/lang/String;
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SystemActivity$1;->this$0:Lcom/teewoo/app/bus/ui/SystemActivity;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/SystemActivity;->access$2(Lcom/teewoo/app/bus/ui/SystemActivity;)Ljava/lang/String;

    move-result-object v8

    .line 64
    .local v8, systemVersion:Ljava/lang/String;
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SystemActivity$1;->this$0:Lcom/teewoo/app/bus/ui/SystemActivity;

    invoke-static {v0, v6, v8}, Lcom/teewoo/app/bus/ui/SystemActivity;->access$3(Lcom/teewoo/app/bus/ui/SystemActivity;Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 65
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SystemActivity$1;->this$0:Lcom/teewoo/app/bus/ui/SystemActivity;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/SystemActivity;->access$4(Lcom/teewoo/app/bus/ui/SystemActivity;)Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f08001d

    .line 66
    const v2, 0x7f080014

    const v3, 0x7f02005d

    new-instance v4, Lcom/teewoo/app/bus/ui/SystemActivity$1$1;

    invoke-direct {v4, p0}, Lcom/teewoo/app/bus/ui/SystemActivity$1$1;-><init>(Lcom/teewoo/app/bus/ui/SystemActivity$1;)V

    .line 75
    const/4 v5, 0x0

    .line 65
    invoke-static/range {v0 .. v5}, Lcom/teewoo/app/bus/util/DialogUtil;->askDialog(Landroid/content/Context;IIILandroid/content/DialogInterface$OnClickListener;Landroid/content/DialogInterface$OnClickListener;)V

    .line 91
    .end local v6           #downloadVersion:Ljava/lang/String;
    .end local v8           #systemVersion:Ljava/lang/String;
    :cond_0
    :goto_0
    return-void

    .line 77
    .restart local v6       #downloadVersion:Ljava/lang/String;
    .restart local v8       #systemVersion:Ljava/lang/String;
    :cond_1
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SystemActivity$1;->this$0:Lcom/teewoo/app/bus/ui/SystemActivity;

    const v1, 0x7f080013

    invoke-static {v0, v1}, Lcom/teewoo/app/bus/util/DialogUtil;->baseDialog(Landroid/content/Context;I)V

    goto :goto_0

    .line 79
    .end local v6           #downloadVersion:Ljava/lang/String;
    .end local v8           #systemVersion:Ljava/lang/String;
    :cond_2
    const/4 v0, 0x2

    if-ne p3, v0, :cond_3

    .line 81
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SystemActivity$1;->this$0:Lcom/teewoo/app/bus/ui/SystemActivity;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/SystemActivity;->access$4(Lcom/teewoo/app/bus/ui/SystemActivity;)Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f080016

    invoke-static {v0, v1}, Lcom/teewoo/app/bus/util/DialogUtil;->baseDialog(Landroid/content/Context;I)V

    goto :goto_0

    .line 82
    :cond_3
    const/4 v0, 0x3

    if-ne p3, v0, :cond_4

    .line 83
    new-instance v7, Landroid/content/Intent;

    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SystemActivity$1;->this$0:Lcom/teewoo/app/bus/ui/SystemActivity;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/SystemActivity;->access$4(Lcom/teewoo/app/bus/ui/SystemActivity;)Landroid/content/Context;

    move-result-object v0

    const-class v1, Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-direct {v7, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 84
    .local v7, intent:Landroid/content/Intent;
    const-string v0, "com.teewoo.app.bus.url"

    const-string v1, "http://doudou360.com/DouDouHelp.htm"

    invoke-virtual {v7, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 85
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SystemActivity$1;->this$0:Lcom/teewoo/app/bus/ui/SystemActivity;

    invoke-virtual {v0, v7}, Lcom/teewoo/app/bus/ui/SystemActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 86
    .end local v7           #intent:Landroid/content/Intent;
    :cond_4
    const/4 v0, 0x4

    if-ne p3, v0, :cond_0

    .line 87
    new-instance v7, Landroid/content/Intent;

    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SystemActivity$1;->this$0:Lcom/teewoo/app/bus/ui/SystemActivity;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/SystemActivity;->access$4(Lcom/teewoo/app/bus/ui/SystemActivity;)Landroid/content/Context;

    move-result-object v0

    const-class v1, Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-direct {v7, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 88
    .restart local v7       #intent:Landroid/content/Intent;
    const-string v0, "com.teewoo.app.bus.url"

    const-string v1, "http://doudou360.com/DouDouUs.htm"

    invoke-virtual {v7, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 89
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/SystemActivity$1;->this$0:Lcom/teewoo/app/bus/ui/SystemActivity;

    invoke-virtual {v0, v7}, Lcom/teewoo/app/bus/ui/SystemActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0
.end method
